CC=gcc
CFLAGS=-Wall -g
LIBPATH=../../..
INCLS=-I$(LIBPATH)/include
LIBS=-L$(LIBPATH)/lib -lsoar_g
LIBS+=-lcrypto

BINS=md_gen md_bench encode_demo encode_file decode_file sym_demo rsa_demo

all : $(BINS)

$(BINS) : % : %.c
	$(CC) $(CFLAGS) $(INCLS) -o $@ $< $(LIBS)
	chmod 744 $@

clean :
	rm -f core* $(BINS)
